﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml;

using Avatar.MembershipService;

public partial class Admin_Admin_Index : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
            if (!Page.IsPostBack)
            {
                string _role = string.Empty;
                foreach (var _r in Roles.GetRolesForUser())
                {
                    _role += _r + " ";
                }
                //lbl_User.Text = Membership.GetUser().UserName + "【 " + _role + "】";

            }
    }
    protected void btn_Logout_Click(object sender, EventArgs e)
    {
        LoginManager.Logout();
        Response.Redirect("~/");
    }
}
